package com.teamall.web.main.db.dao.mapper;

import com.teamall.web.main.db.arg.CodeStatTownArg;
import com.teamall.web.main.db.po.CodeStatTownPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeStatTownMapper {
    
    List<Integer> countByArg(CodeStatTownArg arg);

    List<CodeStatTownPO> selectByArg(CodeStatTownArg arg);

    CodeStatTownPO selectByPrimaryKey(Integer id);

    List<CodeStatTownPO> selectByArgAndPage(CodeStatTownArg arg, RowBounds rowBound);

    int insert(CodeStatTownPO record);

    int insertSelective(CodeStatTownPO record);

    int insertBatch(@Param("list") List<CodeStatTownPO> records);

    int updateByArgSelective(@Param("record") CodeStatTownPO record,
            @Param("arg") CodeStatTownArg arg);

    int updateByArg(@Param("record") CodeStatTownPO record,
            @Param("arg") CodeStatTownArg arg);

    int updateByPrimaryKeySelective(CodeStatTownPO record);

    int updateByPrimaryKey(CodeStatTownPO record);
    
    int deleteByArg(CodeStatTownArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}